﻿﻿using System;
using System.Collections.Generic;
using System.Web;
namespace WebMvc.App.Models.Tips.Common
{
    public class category_property
    {
		public string id=null;
		public string name=null;
		public string channel_id=null;
		public string parent_id=null;
		public string category_id=null;
        public string __name__;
        public category_property(string name)
        {
            this.__name__ = name;
			this.id = string.Format("{0}.id",__name__);
			this.name = string.Format("{0}.name",__name__);
			this.channel_id = string.Format("{0}.channel_id",__name__);
			this.parent_id = string.Format("{0}.parent_id",__name__);
			this.category_id = string.Format("{0}.category_id",__name__);
        }
        public category_property()
        {
			this.id = string.Format("{0}.id",__name__);
			this.name = string.Format("{0}.name",__name__);
			this.channel_id = string.Format("{0}.channel_id",__name__);
			this.parent_id = string.Format("{0}.parent_id",__name__);
			this.category_id = string.Format("{0}.category_id",__name__);
        }
        public override string ToString()
        {
            if (__name__ == null)
            {
                return "category_property";
            }
            else
            {
                return string.Format("category_property as {0}",__name__);
            }
        }
    }
}